using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN QuanHeHocPhanService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: QuanHeHocPhanService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class QuanHeHocPhanService : IQuanHeHocPhanService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: QuanHeHocPhan_ID</para>
		/// <para>Output: QuanHeHocPhanEntity</para>
		///</summary>
		public QuanHeHocPhanEntity SelectOne(int QuanHeHocPhan_ID){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.SelectOne(QuanHeHocPhan_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of QuanHeHocPhanEntity</para>
		///</summary>
		public List<QuanHeHocPhanEntity> SelectAll(){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of QuanHeHocPhanEntity</para>
		///</summary>
		public List<QuanHeHocPhanEntity> SelectAllFilter(string strFilter){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: QuanHeHocPhanEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(QuanHeHocPhanEntity o){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: QuanHeHocPhanEntity</para>
		/// <para>Output: QuanHeHocPhanEntity</para>
		///</summary>
		public QuanHeHocPhanEntity SaveRet(QuanHeHocPhanEntity o){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of QuanHeHocPhanEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<QuanHeHocPhanEntity> list){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of QuanHeHocPhanEntity</para>
		/// <para>Output: List of QuanHeHocPhanEntity</para>
		///</summary>
		public List<QuanHeHocPhanEntity> SaveListRet(List<QuanHeHocPhanEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: QuanHeHocPhanEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(QuanHeHocPhanEntity o){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of QuanHeHocPhanEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<QuanHeHocPhanEntity> list){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTuChiTietChuongTrinh_ID</para>
		/// <para>Input: NewTuChiTietChuongTrinh_ID,QuanHeHocPhan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTuChiTietChuongTrinh_ID(int NewTuChiTietChuongTrinh_ID,int QuanHeHocPhan_ID){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.UpdateTuChiTietChuongTrinh_ID(NewTuChiTietChuongTrinh_ID,QuanHeHocPhan_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateDenChiTietChuongTrinh_ID</para>
		/// <para>Input: NewDenChiTietChuongTrinh_ID,QuanHeHocPhan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDenChiTietChuongTrinh_ID(int NewDenChiTietChuongTrinh_ID,int QuanHeHocPhan_ID){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.UpdateDenChiTietChuongTrinh_ID(NewDenChiTietChuongTrinh_ID,QuanHeHocPhan_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateLoaiQuanHe</para>
		/// <para>Input: NewLoaiQuanHe,QuanHeHocPhan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiQuanHe(Byte NewLoaiQuanHe,int QuanHeHocPhan_ID){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.UpdateLoaiQuanHe(NewLoaiQuanHe,QuanHeHocPhan_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: QuanHeHocPhanEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(QuanHeHocPhanEntity o){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: QuanHeHocPhan_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int QuanHeHocPhan_ID){
			QuanHeHocPhanDAO dao = new QuanHeHocPhanDAO();
			return dao.DeleteByID(QuanHeHocPhan_ID);
		}
		#endregion

		#region Select join to ChiTietChuongTrinh functions
		#endregion

		#region Select,delete by QuanHeHocPhan_ID functions
		#endregion

		#region Select,delete by TuChiTietChuongTrinh_ID functions
		#endregion

		#region Select,delete by DenChiTietChuongTrinh_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END QuanHeHocPhanWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

